/**
 * 
 */
package com.mvc.service.healthmanager;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import com.mvc.model.healthmanager.archive.BloodSugar;
import com.mvc.model.healthmanager.archive.WeightHeight;
import com.mvc.model.personHealth.UserWeightHeight;

/**
 * @author qingjie
 *
 */
@Service
public interface WeightHeightServiceI {
	/**
	 * 根据个人id,获取最新体重记录
	 * @author qingjie
	 * @param personId
	 * @return
	 * Date:2015-11-15
	 */
	public WeightHeight getNewWeightHeight(WeightHeight wh);
	
	public List<WeightHeight> getWeightHeight(WeightHeight wh);
	
	public String getJsonData(String personId);
	
	public List<WeightHeight> findWeightHeight(Map<String, Object> params,String order);
	
	//根据ID获取
	public UserWeightHeight getUserYhWeightById(UserWeightHeight uWeight);
	/**
	 * @author Roy
	 * 根据不同条件获取身高体重
	 * @param params
	 * @return
	 */
	public List<WeightHeight> finWeightHeights(Map<String, Object> params,String order);
	
	/**
	 * 获取体重指数变化json
	 * @author qingjie
	 * @param personId
	 * @return
	 */
	public String getBmiJson(String personId);
	/**
	 * 获取腰围变化json
	 * @author qingjie
	 * @param personId
	 * @return
	 */
	public String getWaistJson(String personId);
}
